package com.scwatch.core.service;

import com.scwatch.common.orm.Limitable;
import com.scwatch.core.domain.Invite;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import javax.servlet.ServletOutputStream;
import java.util.List;
import java.util.Map;

public interface InviteService {
    Page<Invite> findAll(Map<String, String[]> params, Pageable pageable);

    List<Invite> findAll(Map<String, String[]> params,Limitable limitable);

    Invite findById(Integer id);

    void delete(Invite bean);

    Invite[]  delete(Integer[] ids);

    Invite get(Integer id);

    Invite save(Invite bean);

    Invite update(Invite bean);

    List<Invite> saveList(List<Invite> beans);

    public void saveCityInviteCodeQueue(String text);

    void export(String[] titles, ServletOutputStream out,List<Invite> inviteList);
}
